import request from '@/api/request.js'


const api_name = 'UserzandrolezURL'

export default {


	// 查询一个用户的角色
	selectUserRole(user_id) {
		return request({
			url: `/${api_name}/selectUserRole/${user_id}`,
			method: 'get',
		})
	},


	// 查询一个用户的角色2
	selectUserRoleTWO(demo) {
		return request({
			url: `/${api_name}/selectUserRoleTWO`,
			method: 'post',
			data: demo
		})
	},



	//insert:(插入)
	insert(demo) {
		return request({
			url: `/${api_name}/insert`,
			method: 'post',
			data: demo
		})
	},

	//删除用户角色
	
	deleteUserRole(demo) {
		return request({
			url: `/${api_name}/deleteUserRole`,
			method: 'post',
			data: demo
		})
	},


	//insertOrUpdate(插入或更新(根据主键或唯一索引更新，主键和唯一索引不会改变))
	insertOrUpdate(demo) {
		return request({
			url: `/${api_name}/insertOrUpdate`,
			method: 'post',
			data: demo
		})
	},


	//insertBath:(批量插入)
	insertBatch(list) {
		return request({
			url: `/${api_name}/insertBatch`,
			method: 'post',
			data: list
		})
	},


	//insertOrUpdateBatch:(批量插入或更新)
	insertOrUpdateBatch(list) {
		return request({
			url: `/${api_name}/insertOrUpdateBatch`,
			method: 'post',
			data: list
		})
	},


	//selectList:(根据参数查询集合)
	selectList(param) {
		return request({
			url: `/${api_name}/selectList`,
			method: 'post',
			data: param
		})
	},


	// selectCount:(根据集合查询数量)
	selectCount(param) {
		return request({
			url: `/${api_name}/selectCount`,
			method: 'post',
			data: param
		})
	},


}
